<table style='width: 100%' cellspacing='0' cellpadding='0'>
	<tr>
		<td style='width: 180px; padding-right: 20px; vertical-align: top;'>
			<div class='ui-widget-header ui-corner-all upload_header'>Dossiers</div>
			<div id='upload_dossiers' class='ui-corner-all ui-widget-content'>
				<?php foreach($_dossiers as $dossier){ ?>
				<div class='upload_liste_dossier' style='border-width: 0px 0px 1px 0px;' onclick="window.open('<?php echo CFG_REP_INSTALL."admin?confmodule=upload_images&dossier=".$dossier; ?>','_self');"><span class='ui-icon ui-icon-folder-<?php if($_dossier==$dossier) echo "open"; else echo "collapsed"; ?>'></span><?php echo $dossier; ?></div>
				<?php } ?>
			</div>
		</td>
		<td style=' vertical-align: top;'>
			<div class='ui-widget-header ui-corner-all upload_header'>Images - <?php echo $_dossier; ?></div>
			<div id='upload_images' class='ui-corner-all ui-widget-content'>
				<?php foreach($_fichiers as $fichier){ ?>
				<div class='upload_image ui-corner-all tooltip' onclick="window.open('<?php echo $fichier["url"]; ?>','_blank');" title="<?php echo $_dir."/".$_dossier."/".$fichier["nom"]; ?>">
					<div class='upload_image_icon' <?php if(isset($fichier["thumb"])) echo "style=\"background-image: url('".$fichier["thumb"]."')\""; ?>></div>
					<div class='upload_image_titre'><?php echo $fichier["nom"]; ?></div>
				</div>
				<?php } ?>
			</div>
			<br />
			<div class='ui-widget-header ui-corner-all upload_header'>Ajouter une image</div>
			<div id='upload_ajout' class='ui-corner-all ui-widget-content'>
				<form name='formAdminUploadImages' method="post" action="<?php echo CFG_REP_INSTALL."admin?confmodule=upload_images"; ?>" enctype="multipart/form-data">
					<div class='align-center'>
						<table style='margin: auto;'>
							<tr>
								<td>Fichier : </td>
								<td><input type='file' name='fichier' /></td>
							</tr>
						</table>
						<a href="#" onclick="open_loading(); document.formAdminUploadImages.submit();" class="a-button ui-state-default ui-corner-all"><span class="ui-icon ui-icon-disk"></span>Enregistrer</a>
					</div>
					<input type='hidden' name='dossier' value='<?php echo $_dossier; ?>' />
					<input type='hidden' name='action' value='upload' />
				</form>
			</div>
		</td>
	</tr>
</table>